﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NEMProjectWebApp {
    public class JogEll : System.Web.UI.Page {
        public JogEll(int jog_ID) {
            if (Session.Count > 0) {
                if (Convert.ToInt32(Session["Jogkor_ID"].ToString()) != jog_ID)
                    System.Web.HttpContext.Current.Response.Redirect("~/Pages/NincsJogodOldal.aspx");
            }
            else {
                System.Web.HttpContext.Current.Response.Redirect("~/Pages/NincsJogodOldal.aspx");
            }
        }
    }
}